package se.lnu.axez.physics.bullet;

public final class BoxCollisionShape extends CollisionShape {
	private final float mXSize;
	private final float mYSize;
	private final float mZSize;

	BoxCollisionShape(float xSize, float ySize, float zSize) {
		this.mXSize = xSize;
		this.mYSize = ySize;
		this.mZSize = zSize;
	}

	public float getXSize() {
		return mXSize;
	}

	public float getYSize() {
		return mYSize;
	}

	public float getZSize() {
		return mZSize;
	}

	@Override
	protected void createInternal(BulletFacade bulletFacade) {
		final int collisionShapeId = bulletFacade.createBoxCollisionShape(mXSize, mYSize, mZSize);
		setCollisionShapeId(collisionShapeId);
	}
}
